
public class SortArray {
	public static void main(String args[])
	{
		int a[]={7,4,9,8,1,2,5,3,0,6};
		int len=a.length;
		System.out.println("The sorted form is:");
		for(int i=0;i<len;i++)
		{
			for(int j=i+1;j<len;j++)
			{
				if(a[i]>a[j])
				{
					int temp=a[i];
					    a[i]=a[j];
					    a[j]=temp;
				}
			}
			System.out.println(a[i]);
 		}			
	}

}
